package com.atguigu.spring.pojo;


public class Book {

  private long bookId;
  private String bookName;
  private long price;
  private long stock;


  public long getBookId() {
    return bookId;
  }

  public void setBookId(long bookId) {
    this.bookId = bookId;
  }


  public String getBookName() {
    return bookName;
  }

  public void setBookName(String bookName) {
    this.bookName = bookName;
  }


  public long getPrice() {
    return price;
  }

  public void setPrice(long price) {
    this.price = price;
  }


  public long getStock() {
    return stock;
  }

  public void setStock(long stock) {
    this.stock = stock;
  }

  public Book() {
  }

  public Book(long bookId, String bookName, long price, long stock) {
    this.bookId = bookId;
    this.bookName = bookName;
    this.price = price;
    this.stock = stock;
  }

  @Override
  public String toString() {
    return "Book{" +
            "bookId=" + bookId +
            ", bookName='" + bookName + '\'' +
            ", price=" + price +
            ", stock=" + stock +
            '}';
  }
}
